Part Number Hot Search : 
FRF1005 B105K UESP08D SMA12 20150 JANSR2 K2299 APW7120A
Product Description
Full Text Search
 

To Download SCN2681AC1A44-S Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
     
  scn2681 dual asynchronous receiver/transmitter (duart) product specification supersedes data of 1995 may 01 ic19 data handbook 1998 sep 04 integrated circuits
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 2 1998 sep 04 8531077 19970 description the philips semiconductors scn2681 dual universal asynchronous receiver/transmitter (duart) is a single-chip mos-lsi communications device that provides two independent full-duplex asynchronous receiver/transmitter channels in a single package. it interfaces directly with microprocessors and may be used in a polled or interrupt driven system. the operating mode and data format of each channel can be programmed independently. additionally, each receiver and transmitter can select its operating speed as one of eighteen fixed baud rates, a 16x clock derived from a programmable counter/timer, or an external 1x or 16x clock. the baud rate generator and counter/timer can operate directly from a crystal or from external clock inputs. the ability to independently program the operating speed of the receiver and transmitter make the duart particularly attractive for dual-speed channel applications such as clustered terminal systems. each receiver is quadruply buffered to minimize the potential of receiver over-run or to reduce interrupt overhead in interrupt driven systems. in addition, a flow control capability is provided to disable a remote duart transmitter when the buffer of the receiving device is full. also provided on the scn2681 are a multipurpose 7-bit input port and a multipurpose 8-bit output port. these can be used as general purpose i/o ports or can be assigned specific functions (such as clock inputs or status/interrupt outputs) under program control. the scn2681 is available in three package versions: 40-pin and 28pin, both 0.6o wide dips; a compact 24-pin 0.4o wide dip; and a 44-pin plcc. features ? dual full-duplex asynchronous receiver/transmitter ? quadruple buffered receiver data registers ? programmable data format 5 to 8 data bits plus parity odd, even, no parity or force parity 1, 1.5 or 2 stop bits programmable in 1/16-bit increments ? programmable baud rate for each receiver and transmitter selectable from: 22 fixed rates: 50 to 115.2k baud ? 16-bit programmable counter/timer non-standard rates to 115.2kb one user-defined rate derived from programmable timer/counter external 1x or 16x clock ? parity, framing, and overrun error detection ? false start bit detection ? line break detection and generation ? programmable channel mode normal (full-duplex) automatic echo local loopback remote loopback ? multi-function programmable 16-bit counter/timer ? multi-function 7-bit input port can serve as clock or control inputs change of state detection on four inputs 100k w typical pull-up resistor ? multi-function 8-bit output port individual bit set/reset capability outputs can be programmed to be status/interrupt signals ? versatile interrupt system single interrupt output with eight maskable interrupting conditions output port can be configured to provide a total of up to six separate wire-orable interrupt outputs ? maximum data transfer: 1x 1mb/sec, 16x 125kb/sec ? automatic wake-up mode for multidrop applications ? start-end break interrupt/status ? detects break which originates in the middle of a character ? on-chip crystal oscillator ? single +5v power supply ? commercial and industrial temperature ranges available ? dip and plcc packages ordering information order code description commercial industrial description v cc = +5v + 5%, t a = 0 c to +70 c v cc = +5v + 10%, t a = -40 c to +85 c plastic dip plastic lcc plastic dip plastic lcc 24-pin 1 scn2681ac1n24 not available scn2681ae1n24 not available 28-pin 2 scn2681ac1n28 not available scn2681ae1n28 not available 40-pin 2 scn2681ac1n40 not available scn2681ae1n40 not available 44-pin not available scn2681ac1a44 not available scn2681ae1a44 notes: 1. 400mil-wide dual in-line package 2. 600mil-wide dual in-line package
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 3 pin configurations pin/function pin/function 1nc 23nc 2 a0 24 intrn 3 ip3 25 d6 4a1 26d4 5 ip1 27 d2 6a2 28d0 7 a3 29 op6 8 ip0 30 op4 9 wrn 31 op2 10 rdn 32 op0 11 rxdb 33 txda 12 nc 34 nc 13 txdb 35 rxda 14 op1 36 x1/clk 15 op3 37 x2 16 op5 38 reset 17 op7 39 cen 18 d1 40 ip2 19 d3 41 ip6 20 d5 42 ip5 21 d7 43 ip4 22 gnd 44 v cc 24 23 22 21 20 19 18 17 16 15 28 27 12 10 11 9 8 7 6 5 4 3 2 1 14 13 26 25 29 30 31 32 33 34 35 36 37 38 39 40 dip v cc ip4 ip5 ip6 ip2 cen reset x2 x1/clk rxda txda op0 op2 op4 op6 d0 d2 d4 d6 intrn a0 ip3 a1 ip1 a2 a3 ip0 wrn rdn rxdb txdb op1 op3 op5 op7 d1 d3 d5 d7 gnd 24 23 22 21 20 19 18 17 16 15 28 27 12 10 11 9 8 7 6 5 4 3 2 1 14 13 26 25 v cc ip2 cen reset x2 x1/clk rxda txda op0 d0 d2 d4 d6 intrn gnd d7 d5 d3 d1 op1 txdb rxdb rdn wrn a3 a2 a1 a0 dip 1 2 3 4 5 6 7 8 9 10 11 12 23 22 21 20 19 18 17 16 15 14 13 a1 a2 a3 wrn rdn rxdb txdb d1 d3 d5 d7 gnd dip 24 a0 v cc cen reset x1/clk rxda txda d0 d2 d4 d6 intrn 1 39 17 28 40 29 18 7 plcc 6 top view index corner sd00084 figure 1. pin configurations
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 4 pin description symbol applicable type name and function symbol 40/44 28 24 type name and function d0d7 x x x i/o data bus: bidirectional 3-state data bus used to transfer commands, data and status be- tween the duart and the cpu. d0 is the least significant bit. cen x x x i chip enable: active-low input signal. when low, data transfers between the cpu and the duart are enabled on d0-d7 as controlled by the wrn, rdn and a0-a3 inputs. when high, places the d0-d7 lines in the 3-state condition. wrn x x x i write strobe: when low and cen is also low, the contents of the data bus is loaded into the addressed register. the transfer occurs on the rising edge of the signal. rdn x x x i read strobe: when low and cen is also low, causes the contents of the addressed regis- ter to be presented on the data bus. the read cycle begins on the falling edge of rdn. a0a3 x x x i address inputs: select the duart internal registers and ports for read/write operations. reset x x x i reset: a high level clears internal registers (sra, srb, imr, isr, opr, opcr), puts op0op7 in the high state, stops the counter/timer, and puts channels a and b in the inac- tive state, with the txda and txdb outputs in the mark (high) state. clears test modes, sets mr pointer to mr1. intrn x x x o interrupt request: active-low, open-drain, output which signals the cpu that one or more of the eight maskable interrupting conditions are true. x1/clk x x x i crystal 1: crystal connection or an external clock input. a crystal of a clock the appropriate frequency (nominally 3.6864 mhz) must be supplied at all times. for crystal connections see figure 7, clock timing. x2 x x i crystal 2: crystal connection. see figure 7. if a crystal is not used it is best to keep this pin not connected although it is permissible to ground it. rxda x x x i channel a receiver serial data input: the least significant bit is received first. amarko is high, aspaceo is low. rxdb x x x i channel b receive serial data input: the least significant bit is received first. amarko is high, aspaceo is low. txda x x x o channel a transmitter serial data output: the least significant bit is transmitted first. this output is held in the amarko condition when the transmitter is disabled, idle or when oper- ating in local loopback mode. amarko is high, aspaceo is low. txdb x x x o channel b transmitter serial data output: the least significant bit is transmitted first. this output is held in the amarko condition when the transmitter is disabled, idle or when oper- ating in local loopback mode. amarko is high, aspaceo is low. op0 x x o output 0: general purpose output or channel a request to send (rtsan, active-low). can be deactivated automatically on receive or transmit. op1 x x o output 1: general purpose output or channel b request to send (rtsbn, active-low). can be deactivated automatically on receive or transmit. op2 x o output 2: general purpose output or channel a transmitter 1x or 16x clock output, or chan- nel a receiver 1x clock output. op3 x o output 3: general purpose output or open-drain, active-low counter/timer output or channel b transmitter 1x clock output, or channel b receiver 1x clock output. op4 x o output 4: general purpose output or channel a open-drain, active-low, rxrdya/ffulla output. op5 x o output 5: general purpose output or channel b open-drain, active-low, rxrdyb/ffullb output. op6 x o output 6: general purpose output or channel a open-drain, active-low, txrdya output. op7 x o output 7: general purpose output or channel b open-drain, active-low, txrdyb output. ip0 x i input 0: general purpose input or channel a clear to send active-low input (ctsan). pin has an internal v cc pull-up device supplying 1 to 4  a of current. ip1 x i input 1: general purpose input or channel b clear to send active-low input (ctsbn). pin has an internal v cc pull-up device supplying 1 to 4  a of current. ip2 x x i input 2: general purpose input or counter/timer external clock input. pin has an internal v cc pull-up device supplying 1 to 4  a of current. ip3 x i input 3: general purpose input or channel a transmitter external clock input (txca). when the external clock is used by the transmitter, the transmitted data is clocked on the falling edge of the clock. pin has an internal v cc pull-up device supplying 1 to 4  a of current. ip4 x i input 4: general purpose input or channel a receiver external clock input (rxca). when the external clock is used by the receiver, the received data is sampled on the rising edge of the clock. pin has an internal v cc pull-up device supplying 1 to 4  a of current.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 5 pin description (continued) symbol applicable type name and function symbol 40/44 28 24 type name and function ip5 x i input 5: general purpose input or channel b transmitter external clock input (txcb). when the external clock is used by the transmitter, the transmitted data is clocked on the falling edge of the clock. pin has an internal v cc pull-up device supplying 1 to 4  a of current. ip6 x i input 6: general purpose input or channel b receiver external clock input (rxcb). when the external clock is used by the receiver, the received data is sampled on the rising edge of the clock. pin has an internal v cc pull-up device supplying 1 to 4  a of current. v cc x x i power supply: +5v supply input. gnd x x i ground absolute maximum ratings 1 symbol parameter rating unit t a operating ambient temperature range 2 see note 4 c t stg storage temperature range -65 to +150 c all voltages with respect to ground 3 -0.5 to +6.0 v notes: 1. stresses above those listed under absolute maximum ratings may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other condition above those indicated in the operation section of this speci fication is not implied. 2. for operating at elevated temperatures, the device must be derated based on +150 o c maximum junction temperature. 3. this product includes circuitry specifically designed for the protection of its internal devices from damaging effects of exc essive static charge. nonetheless, it is suggested that conventional precautions be taken to avoid applying any voltages larger than the rat ed maxima. 4. parameters are valid over specified temperature range. see ordering information table for applicable operating temperature ra nge and v cc supply range. dc electrical characteristics 1, 2, 3 t a = -40 c to +85 c, v cc = +5.0v  10% symbol parameter test conditions limits unit symbol parameter test conditions min typ max unit v il v ih v ih v ih v ol v oh v oh input low voltage input high voltage (except x1/clk) 5 input high voltage (except x1/clk) 4 input high voltage (x1/clk) output low voltage output high voltage (except o.d. outputs) 5 output high voltage (except o.d. outputs) 4 i ol = 2.4ma i oh = -400 m a i oh = -400 m a 2 2.5 4 2.4 2.9 0.8 0.4 v v v v v v v i il i ll i x1l i x1h i x2l i x2h i oc i occ input leakage current data bus 3-stage leakage current x1/clk low input current x1/clk high input current x2 low input current x2 high input current open-collector output leakage current power supply current v in = 0 to v cc v o = 0.4 to v cc v in = 0, x2 grounded v in = 0, x2 floated v in = v cc , x2 grounded v in = v cc , x2 floated v in = 0, x1/clk floated v in = v cc , x1/clk floated v o = 0.4 to v cc 0 c to +70 c version -40 c to +85 c version -10 -10 -4 -3 -1 0 -100 0 -10 -2 -1.5 0.2 3.5 -30 +30 10 10 0 0 1 10 0 100 10 150 175 m a m a ma ma ma ma m a m a m a ma ma notes: 1. parameters are valid over specified temperature range. see ordering information table for applicable operating temperature r ange and v cc supply range. 2. all voltage measurements are referenced to ground (gnd). for testing, all inputs except x1/clk swing between 0.4v and 2.4v w ith a transition time of 20ns maximum. for x1/clk this swing is between 0.4v and 4.4v. all time measurements are referenced at inpu t voltages of 0.8v and 2.0v as appropriate. 3. typical values are at +25 c, typical supply voltages, and typical processing parameters. 4. t a < 0 c 5. t a > 0 c
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 6 ac characteristics t a = -40 c to +85 c 1 , v cc = +5.0v  10% 2, 3, 4, 5 symbol parameter limits unit symbol parameter min typ max unit reset timing (figure 3) t res reset pulse width 200 ns bus timing (figure 4) 6 t as a0-a3 setup time to rdn, wrn low 10 ns t ah a0-a3 hold time from rdn, wrn low 100 ns t cs cen setup time to rdn, wrn low 0 ns t ch cen hold time from rdn, wrn high 0 ns t rw wrn, rdn pulse width 225 ns t dd data valid after rdn low 175 ns t df data bus floating after rdn high 100 ns t ds data setup time before wrn high 100 ns t dh data hold time after wrn high 20 ns t rwd high time between reads and/or write 7, 8 200 ns port timing (figure 5) 6 t ps port input setup time before rdn low 0 ns t ph port input hold time after rdn high 0 ns t pd port output valid after wrn high 400 ns interrupt timing (figure 6) t ir intrn (or op3-op7 when used as interrupts) negated from: read rhr (rxrdy/ffull interrupt) 300 ns write thr (txrdy interrupt) 300 ns reset command (delta break interrupt) 300 ns stop c/t command (counter interrupt) 300 ns read ipcr (input port change interrupt) 300 ns write imr (clear of interrupt mask bit) 300 ns clock timing (figure 7) 10 t clk x1/clk high or low time 100 ns f clk x1/clk frequency 2.0 3.6864 4.0 mhz t ctc ctclk (ip2) high or low time 100 ns f ctc ctclk (ip2) frequency 0 4.0 mhz t rx 9 rxc high or low time 220 ns f rx 9 rxc frequency (16x) (1x) 0 0 2.0 1.0 mhz mhz t tx 9 txc high or low time 220 ns f tx 9 txc frequency (16x) (1x) 0 0 2.0 1.0 mhz mhz transmitter timing (figure 8) t txd 9 txd output delay from txc external clock input on ip pin 350 ns t tcs 9 output delay from txc low at op pin to txd data output 0 150 ns receiver timing (figure 10) t rxs 9 rxd data setup time before rxc high at external clock input on ip pin 240 ns t rxh 9 rxd data hold time after rxc high at external clock input on ip pin 200 ns notes: 1. for operating at elevated temperatures, the device must be derated based on +150 c maximum junction temperature. 2. parameters are valid over specified temperature range. 3. all voltage measurements are referenced to ground (gnd). for testing, all inputs except x1/clk swing between 0.4v and 2.4v w ith a transition time of < 20ns. for x1/clk this swing is between 0.4v and 4.4v. all time measurements are referenced at input voltages of 0.8v and 2.0v as appropriate. 4. typical values are at +25 c, typical supply voltages, and typical processing parameters. 5. test condition for outputs: c l = 150pf, except interrupt outputs. test condition for interrupt outputs: c l = 50pf, r l = 2.7k w to v cc . 6. timing is illustrated and referenced to the wrn and rdn inputs. the device may also be operated with cen as the `strobing' i nput. in this case, all timing specifications apply referenced to the falling and rising edges of cen, cen and rdn (also cen and wrn) are and ed internally. as a consequence, the signal asserted last initiates the cycle and the signal negated first terminates the cycle. 7. if cen is used as the `strobing' input, the parameter defines the minimum high times between one cen and the next. the rdn s ignal must be negated for t rwd to guarantee that any status register changes are valid. 8. consecutive write operations to the same command register require at least three edges of the x1 clock between writes. 9. this parameter is not applicable to the 28-pin device. 10. operation to 0mhz is assured by design. however, operation at low frequencies is not tested and has not been characterized.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 7 block diagram 8 d0d7 rdn wrn cen a0a3 reset intrn x1/clk x2 4 bus buffer operation control address decode r/w control interrupt control imr isr timing baud rate generator clock selectors counter/ timer xtal osc csra csrb acr ctur channel a transmit holding reg transmit shift register receive holding reg (3) receive shift register mra1, 2 cra sra input port change of state detectors (4) output port function select logic opcr txda rxda ip0-ip6 op0-op7 v cc gnd control timing internal databus channel b (as above) ipcr acr opr ctlr rxdb txdb 8 7 sd00085 figure 2. block diagram block diagram the scn2681 duart consists of the following eight major sections: data bus buffer, operation control, interrupt control, timing, communications channels a and b, input port and output port. refer to the block diagram. data bus buffer the data bus buffer provides the interface between the external and internal data buses. it is controlled by the operation control block to allow read and write operations to take place between the controlling cpu and the duart. operation control the operation control logic receives operation commands from the cpu and generates appropriate signals to internal sections to control device operation. it contains address decoding and read and write circuits to permit communications with the microprocessor via the data bus buffer. interrupt control a single active-low interrupt output (intrn) is provided which is activated upon the occurrence of any of eight internal events. associated with the interrupt system are the interrupt mask register
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 8 (imr) and the interrupt status register (isr). the imr may be programmed to select only certain conditions to cause intrn to be asserted. the isr can be read by the cpu to determine all currently active interrupting conditions. outputs op3-op7 can be programmed to provide discrete interrupt outputs for the transmitter, receivers, and counter/timer. timing circuits the timing block consists of a crystal oscillator, a baud rate generator, a programmable 16-bit counter/timer, and four clock selectors. the crystal oscillator operates directly from a 3.6864mhz crystal connected across the x1/clk and x2 inputs. if an external clock of the appropriate frequency is available, it may be connected to x1/clk. the clock serves as the basic timing reference for the baud rate generator (brg), the counter/timer, and other internal circuits. a clock signal within the limits specified in the specifications section of this data sheet must always be supplied to the duart. if an external clock is used instead of a crystal, both x1 and x2 should use a configuration similar to the one in figure 7. the baud rate generator operates from the oscillator or external clock input and is capable of generating 18 commonly used data communications baud rates ranging from 50 to 38.4k baud. the clock outputs from the brg are at 16x the actual baud rate. the counter/timer can be used as a timer to produce a 16x clock for any other baud rate by counting down the crystal clock or an external clock. the four clock selectors allow the independent selection, for each receiver and transmitter, of any of these baud rates or external timing signal. counter/timer (c/t) the counter timer is a 16 bit programmable divider that operates one of three modes: counter, timer or time out mode. in all three modes it uses the 16-bit value loaded to the ctur and ctlr registers. (counter timer upper and lower preset registers). ? in the timer mode it generates a square wave. ? in the counter mode it generates a time delay. ? in the time out mode it monitors the receiver data flow and signals data flow has paused. in the time out mode the receiver controls the starting/stopping of the c/t. the counter operates as a down counter and sets its output bit in the isr (interrupt status register) each time it passes through 0. the output of the counter/timer may be seen on one of the op pins or as an rx or tx clock. the timer/counter is controlled with six (6) acommandso; start c/t, stop c/t, write c/t, preset registers, read c/t value, set or reset time out mode. please see the detail of the commands under the counter/timer register descriptions. communications channels a and b each communications channel of the scn2681 comprises a full-duplex asynchronous receiver/transmitter (uart). the operating frequency for each receiver and transmitter can be selected independently from the baud rate generator, the counter timer, or from an external input. the transmitter accepts parallel data from the cpu, converts it to a serial bit stream, inserts the appropriate start, stop, and optional parity bits and outputs a composite serial stream of data on the txd output pin. the receiver accepts serial data on the rxd pin, converts this serial input to parallel format, checks for start bit, stop bit, parity bit (if any), or break condition and sends an assembled character to the cpu. the input port pulse detection circuitry uses a 38.4khz sampling clock derived from one of the baud rate generator taps. this results in a sampling period of slightly more than 25 m s (this assumes that the clock input is 3.6864mhz). the detection circuitry, in order to guarantee that a true change in level has occurred, requires two successive samples at the new logic level be observed. as a consequence, the minimum duration of the signal change is 25 m s if the transition occurs acoincident with the first sample pulseo. the 50 m s time refers to the situation in which the change-of-state is ajust missedo and the first change-of-state is not detected until 25 m s later. input port the inputs to this unlatched 7-bit port can be read by the cpu by performing a read operation at address d16. a high input results in a logic 1 while a low input results in a logic 0. d7 will always read as a logic 1. the pins of this port can also serve as auxiliary inputs to certain portions of the duart logic. four change-of-state detectors are provided which are associated with inputs ip3, ip2, ip1 and ip0. a high-to-low or low-to-high transition of these inputs lasting longer than 25 50 m s, will set the corresponding bit in the input port change register. the bits are cleared when the register is read by the cpu. any change-of-state can also be programmed to generate an interrupt to the cpu. all the ip pins have a small pull-up device that will source 1 to 4  a of current from v cc . these pins do not require pull-up devices or v cc connections if they are not used. output port the output port pins may be controlled by the opr, opcr, mr and cr registers. via appropriate programming they may be just another parallel port to external circuits, or they may represent many internal conditions of the uart. when this 8-bit port is used as a general purpose output port, the output port pins drive a state which is the complement of the output port register (opr). opr(n) = 1 results in op(n) = low and vice versa. bits of the opr can be individually set and reset. a bit is set by performing a write operation at address e16 with the accompanying data specifying the bits to be set (1 = set, 0 = no change). likewise, a bit is reset by a write at address f16 with the accompanying data specifying the bits to be reset (1 = reset, 0 = no change). outputs can be also individually assigned specific functions by appropriate programming of the channel a mode registers (mr1a, mr2a), the channel b mode registers (mr1b, mr2b), and the output port configuration register (opcr). please note that these pins drive both high and low. however when they are programmed to represent interrupt type functions (such as receiver ready, transmitter ready or counter/timer ready) they will be switched to an open drain configuration in which case an external pull-up device would be required. transmitter operation the scn2681 is conditioned to transmit data when the transmitter is enabled through the command register. the scn2681 indicates to the cpu that it is ready to accept a character by setting the txrdy bit in the status register. this condition can be programmed to
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 9 generate an interrupt request at op6 or op7 and intrn. when a character is loaded into the transmit holding register (thr), the above conditions are negated. data is transferred from the holding register to transmit shift register when it is idle or has completed transmission of the previous character. the txrdy conditions are then asserted again which means one full character time of buffering is provided. characters cannot be loaded into the thr while the transmitter is disabled. the transmitter converts the parallel data from the cpu to a serial bit stream on the txd output pin. it automatically sends a start bit followed by the programmed number of data bits, an optional parity bit, and the programmed number of stop bits. the least significant bit is sent first. following the transmission of the stop bits, if a new character is not available in the thr, the txd output remains high and the txemt bit in the status register (sr) will be set to 1. transmission resumes and the txemt bit is cleared when the cpu loads a new character into the thr. if the transmitter is disabled, it continues operating until the character currently being transmitted is completely sent out. the transmitter can be forced to send a continuous low condition by issuing a send break command. the transmitter can be reset through a software command. if it is reset, operation ceases immediately and the transmitter must be enabled through the command register before resuming operation. if cts operation is enable, the ctsn input must be low in order for the character to be transmitted. if it goes high in the middle of a transmission, the character in the shift register is transmitted and txda then remains in the marking state until ctsn goes low. the transmitter can also control the deactivation of the rtsn output. if programmed, the rtsn output will be reset one bit time after the character in the transmit shift register and transmit holding register (if any) are completely transmitted, if the transmitter has been disabled. receiver the scn2681 is conditioned to receive data when enabled through the command register. the receiver looks for a high-to-low (mark-to-space) transition of the start bit on the rxd input pin. if a transition is detected, the state of the rxd pin is sampled each 16x clock for 7 1/2 clocks (16x clock mode) or at the next rising edge of the bit time clock (1x clock mode). if rxd is sampled high, the start bit is invalid and the search for a valid start bit begins again. if rxd is still low, a valid start bit is assumed and the receiver continues to sample the input at one bit time intervals at the theoretical center of the bit, until the proper number of data bits and parity bit (if any) have been assembled, and one stop bit has been detected. the least significant bit is received first. the data is then transferred to the receive holding register (rhr) and the rxrdy bit in the sr is set to a 1. this condition can be programmed to generate an interrupt at op4 or op5 and intrn. if the character length is less than eight bits, the most significant unused bits in the rhr are set to zero. after the stop bit is detected, the receiver will immediately look for the next start bit. however, if a non-zero character was received without a stop bit (framing error) and rxd remains low for one half of the bit period after the stop bit was sampled, then the receiver operates as if a new start bit transition had been detected at that point (one-half bit time after the stop bit was sampled). the parity error, framing error, overrun error and received break state (if any) are strobed into the sr at the received character boundary, before the rxrdy status bit is set. if a break condition is detected (rxd is low for the entire character including the stop bit), a character consisting of all zeros will be loaded into the rhr and the received break bit in the sr is set to 1. the rxd input must return to high for two (2) clock edges of the x1 crystal clock for the receiver to recognize the end of the break condition and begin the search for a start bit. this will usually require a high time of one x1 clock period or 3 x1 edges since the clock of the controller is not synchronous to the x1 clock. receiver fifo the rhr consists of a first-in-first-out (fifo) stack with a capacity of three characters. data is loaded from the receive shift register into the topmost empty position of the fifo. the rxrdy bit in the status register is set whenever one or more characters are available to be read, and a ffull status bit is set if all three stack positions are filled with data. either of these bits can be selected to cause an interrupt. a read of the rhr outputs the data at the top of the fifo. after the read cycle, the data fifo and its associated status bits (see below) are `popped' thus emptying a fifo position for new data. receiver status bits in addition to the data word, three status bits (parity error, framing error, and received break) are also appended to each data character in the fifo (overrun is not). status can be provided in two ways, as programmed by the error mode control bit in the mode register. in the `character' mode, status is provided on a character-by-character basis; the status applies only to the character at the top of the fifo. in the `block' mode, the status provided in the sr for these three bits is the logical-or of the status for all characters coming to the top of the fifo since the last `reset error' command was issued. in either mode reading the sr does not affect the fifo. the fifo is `popped' only when the rhr is read. therefore the status register should be read prior to reading the fifo. if the fifo is full when a new character is received, that character is held in the receive shift register until a fifo position is available. if an additional character is received while this state exits, the contents of the fifo are not affected; the character previously in the shift register is lost and the overrun error status bit (sr[4] will be set-upon receipt of the start bit of the new (overrunning) character). the receiver can control the deactivation of rts. if programmed to operate in this mode, the rtsn output will be negated when a valid start bit was received and the fifo is full. when a fifo position becomes available, the rtsn output will be re-asserted automatically. this feature can be used to prevent an overrun, in the receiver, by connecting the rtsn output to the ctsn input of the transmitting device. receiver reset and disable receiver disable stops the receiver immediately data being assembled if the receiver shift register is lost. data and status in the fifo is preserved and may be read. a re-enable of the receiver after a disable will cause the receiver to begin assembling characters at the next start bit detected. a receiver reset will discard the present shift register data, reset the receiver ready bit (rxrdy), clear the status of the byte at the top of the fifo and re-align the fifo read/write pointers. this has the appearance of aclearing or flushingo the receiver fifo. in fact, the fifo is never cleared! the data in the fifo remains valid until overwritten by another received character. because of this, erroneous reading or extra reads of the receiver fifo will miss-align
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 10 the fifo pointers and result in the reading of previously read data. a receiver reset will re-align the pointers. multidrop mode the duart is equipped with a wake up mode for multidrop applications. this mode is selected by programming bits mr1a[4:3] or mr1b[4:3] to `11' for channels a and b, respectively. in this mode of operation, a `master' station transmits an address character followed by data characters for the addressed `slave' station. the slave stations, with receivers that are normally disabled, examine the received data stream and `wake up' the cpu (by setting rxrdy) only upon receipt of an address character. the cpu compares the received address to its station address and enables the receiver if it wishes to receive the subsequent data characters. upon receipt of another address character, the cpu may disable the receiver to initiate the process again. a transmitted character consists of a start bit, the programmed number of data bits, and address/data (a/d) bit, and the programmed number of stop bits. the polarity of the transmitted a/d bit is selected by the cpu by programming bit mr1a[2]/mr1b[2]. mr1a[2]/mr1b[2] = 0 transmits a zero in the a/d bit position, which identifies the corresponding data bits as data while mr1a[2]/mr1b[2] = 1 transmits a one in the a/d bit position, which identifies the corresponding data bits as an address. the cpu should program the mode register prior to loading the corresponding data bits into the thr. in this mode, the receiver continuously looks at the received data stream, whether it is enabled or disabled. if disabled, it sets the rxrdy status bit and loads the character into the rhr fifo if the received a/d bit is a one (address tag), but discards the received character if the received a/d bit is a zero (data tag). if enabled, all received characters are transferred to the cpu via the rhr. in either case, the data bits are loaded into the data fifo while the a/d bit is loaded into the status fifo position normally used for parity error (sra[5] or srb[5]). framing error, overrun error, and break detect operate normally whether or not the receive is enabled. programming the operation of the duart is programmed by writing control words into the appropriate registers. operational feedback is provided via status registers which can be read by the cpu. the addressing of the registers is described in table 1. the contents of certain control registers are initialized to zero on reset. care should be exercised if the contents of a register are changed during operation, since certain changes may cause operational problems. for example, changing the number of bits per character while the transmitter is active may cause the transmission of an incorrect character. in general, the contents of the mr, the csr, and the opcr should only be changed while the receiver(s) and transmitter(s) are not enabled, and certain changes to the acr should only be made while the c/t is stopped. mode registers 1 and 2 of each channel are accessed via independent auxiliary pointers. the pointer is set to mr1x by reset or by issuing a `reset pointer' command via the corresponding command register. any read or write of the mode register while the pointer is at mr1x, switches the pointer to mr2x. the pointer then remains at mr2x, so that subsequent accesses are always to mr2x unless the pointer is reset to mr1x as described above. mode, command, clock select, and status registers are duplicated for each channel to provide total independent operation and control. refer to table 2 for register bit descriptions. the reserved registers at addresses h`02' and h`oa' should never be read during normal operation since they are reserved for internal diagnostics. table 1. scn2681 register addressing a3 a2 a1 a0 read (rdn = 0) write (wrn = 0) 0 0 0 0 mode register a (mr1a, mr2a) mode register a (mr1a, mr2a) 0 0 0 1 status register a (sra) clock select register a (csra) 0 0 1 0 brg test * command register a (cra) 0 0 1 1 rx holding register a (rhra) tx holding register a (thra) 0 1 0 0 input port change register (ipcr) aux. control register (acr) 0 1 0 1 interrupt status register (isr) interrupt mask register (imr) 0 1 1 0 counter/timer upper value (ctu) c/t upper preset value (crur) 0 1 1 1 counter/timer lower value (ctl) c/t lower preset value (ctlr) 1 0 0 0 mode register b (mr1b, mr2b) mode register b (mr1b, mr2b) 1 0 0 1 status register b (srb) clock select register b (csrb) 1 0 1 0 1x/16x test command register b (crb) 1 0 1 1 rx holding register b (rhrb) tx holding register b (thrb) 1 1 0 0 *reserved* *reserved* 1 1 0 1 input ports ip0 to ip6 output port conf. register (opcr) 1 1 1 0 start counter command set output port bits command 1 1 1 1 stop counter command reset output port bits command * see table 5 for brg test frequencies in this data sheet, and aextended baud rates for scn2681, scn68681, scc2691, scc2692, scc68681 and scc2698bo in application notes elsewhere in this publication.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 11 table 2. register bit formats bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mr1a rxrts control rxint select error mode* parity mode parity type bits per character mr1a mr1b 0 = no 1 = yes 0 = rxrdy 1 = ffull 0 = char 1 = block 00 = with parity 01 = force parity 10 = no parity 11 = multidrop mode 0 = even 1 = odd 00 = 5 01 = 6 10 = 7 11 = 8 note: *in block error mode, block error conditions must be cleared by using the error reset command (command 4x) or a receiver reset. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 mr2a channel mode txrts control cts enable tx stop bit length* mr2a mr2b 00 = normal 01 = auto-echo 10 = local loop 11 = remote loop 0 = no 1 = yes 0 = no 1 = yes 0 = 0.563 4 = 0.813 8 = 1.563 c = 1.813 1 = 0.625 5 = 0.875 9 = 1.625 d = 1.875 2 = 0.688 6 = 0.938 a = 1.688 e = 1.938 3 = 0.750 7 = 1.000 b = 1.750 f = 2.000 note: *add 0.5 to values shown for 0 7 if channel is programmed for 5 bits/char. csra bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 csra csrb receiver clock select transmitter clock select csrb see text see text note: * see table 5 for brg test frequencies in this data sheet, and aextended baud rates for scn2681, scn68681, scc2691, scc2692, scc68681 and scc2698bo in application notes elsewhere in this publication. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 cra crb miscellaneous commands disable tx enable tx disable rx enable rx crb not used should be 0 see text 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes note: *access to the upper four bits of the command register should be separated by three (3) edges of the x1 clock. a disabled tran smitter cannot be loaded. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 sra srb received break* framing error* parity error* overrun error txemt txrdy ffull rxrdy srb 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes note: * these status bits are appended to the corresponding data character in the receive fifo. a read of the status provides these b its (7:5) from the top of the fifo together with bits (4:0). these bits are cleared by a areset error statuso command. in character mode the y are discarded when the corresponding data character is read from the fifo. in block error mode, block error conditions must be cleared by us ing the error reset command (command 4x) or a receiver reset. bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 op7 op6 op5 op4 op3 op2 opcr 0 = opr[7] 1 = txrdyb 0 = opr[6] 1 = txrdya 0 = opr[5] 1 = rxrdy/ ffullb 0 = opr[4] 1 = rxrdy/ ffulla 00 = opr[3] 01 = c/t output 10 = txcb(1x) 11 = rxcb(1x) 00 = opr[2] 01 = txca(16x) 10 = txca(1x) 11 = rxca(1x) opr bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 opr bit 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 op pin 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 note: the level at the op pin is the inverse of the bit in the opr register.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 12 table 2. register bit formats (continued) bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 acr brg set select counter/timer mode and source delta ip 3 int delta ip 2 int delta ip 1 int delta ip 0 int 0 = set 1 1 = set 2 see table 4 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ipcr delta ip 3 delta ip 2 delta ip 1 delta ip 0 ip 3 ip 2 ip 1 ip 0 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = low 1 = high 0 = low 1 = high 0 = low 1 = high 0 = low 1 = high bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 isr input port change delta break b rxrdy/ ffullb txrdyb counter ready delta break a rxrdy/ ffulla txrdya 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes 0 = no 1 = yes bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 imr in. port change int delta break b int rxrdy/ ffullb int txrdyb int counter ready int delta break a int rxrdy/ ffulla int txrdya int 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on 0 = off 1 = on bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ctur c/t[15] c/t[14] c/t[13] c/t[12] c/t[11] c/t[10] c/t[9] c/t[8] bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 ctlr c/t[7] c/t[6] c/t[5] c/t[4] c/t[3] c/t[2] c/t[1] c/t[0] mr1a channel a mode register 1 mr1a is accessed when the channel a mr pointer points to mr1. the pointer is set to mr1 by reset or by a `set pointer' command applied via cra. after reading or writing mr1a, the pointer will point to mr2a. mr1a[7] channel a receiver request-to-send control this bit controls the deactivation of the rtsan output (op0) by the receiver. this output is normally asserted by setting opr[0] and negated by resetting opr[0]. mr1a[7] = 1 causes rtsan to be negated upon receipt of a valid start bit if the channel a fifo is full. however, opr[0] is not reset and rtsan will be asserted again when an empty fifo position is available. this feature can be used for flow control to prevent overrun in the receiver by using the rtsan output signal to control the ctsn input of the transmitting device. mr1a[6] channel a receiver interrupt select this bit selects either the channel a receiver ready status (rxrdy) or the channel a fifo full status (ffull) to be used for cpu interrupts. it also causes the selected bit to be output on op4 if it is programmed as an interrupt output via the opcr. mr1a[5] channel a error mode select this bit select the operating mode of the three fifoed status bits (fe, pe, received break) for channel a. in the `character' mode, status is provided on a character-by-character basis; the status applies only to the character at the top of the fifo. in the `blocko mode, the status provided in the sr for these bits is the accumulation (logical-or) of the status for all characters coming to the top of the fifo since the last `reset error' command for channel a was issued. mr1a[4:3| channel a parity mode select if `with parity' or `force parity' is selected a parity bit is added to the transmitted character and the receiver performs a parity check on incoming data mr1a[4:3] + 11 selects channel a to operate in the special multidrop mode described in the operation section. mr1a[2] channel a parity type select this bit selects the parity type (odd or even) if the `with parity' mode is programmed by mr1a[4:3], and the polarity of the forced parity bit if the `force parity' mode is programmed. it has no effect if the `no parity' mode is programmed. in the special multidrop mode it selects the polarity of the a/d bit. mr1a[1:0] channel a bits per character select this field selects the number of data bits per character to be transmitted and received. the character length does not include the start, parity, and stop bits.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 13 mr2a channel a mode register 2 mr2a is accessed when the channel a mr pointer points to mr2, which occurs after any access to mr1a. accesses to mr2a do not change the pointer. mr2a[7:6] channel a mode select each channel of the duart can operate in one of four modes. mr2a[7:6] = 00 is the normal mode, with the transmitter and receiver operating independently. mr2a[7:6] = 01 places the channel in the automatic echo mode, which automatically re-transmits the received data. the following conditions are true while in automatic echo mode: 1. received data is re-clocked and retransmitted on the txda out- put. 2. the receive clock is used for the transmitter. 3. the receiver must be enabled, but the transmitter need not be enabled. 4. the channel a txrdy and txemt status bits are inactive. 5. the received parity is checked, but is not regenerated for trans- mission, i.e. transmitted parity bit is as received. 6. character framing is checked, but the stop bits are retransmitted as received. 7. a received break is echoed as received until the next valid start bit is detected. 8. cpu to receiver communication continues normally, but the cpu to transmitter link is disabled. two diagnostic modes can also be configured. mr2a[7:6] = 10 selects local loopback mode. in this mode: 1. the transmitter output is internally connected to the receiver input. 2. the transmit clock is used for the receiver. 3. the txda output is held high. 4. the rxda input is ignored. 5. the transmitter must be enabled, but the receiver need not be enabled. 6. cpu to transmitter and receiver communications continue nor- mally. the second diagnostic mode is the remote loopback mode, selected by mr2a[7:6] = 11. in this mode: 1. received data is re-clocked and re-transmitted on the txda output. 2. the receive clock is used for the transmitter. 3. received data is not sent to the local cpu, and the error status conditions are inactive. 4. the received parity is not checked and is not regenerated for transmission, i.e., transmitted parity is as received. 5. the receiver must be enabled. 6. character framing is not checked and the stop bits are retrans- mitted as received. 7. a received break is echoed as received until the next valid start bit is detected. the user must exercise care when switching into and out of the various modes. the selected mode will be activated immediately upon mode selection, even if this occurs in the middle of a received or transmitted character. likewise, if a mode is deselected the device will switch out of the mode immediately. an exception to this is switching out of autoecho or remote loopback modes: if the deselection occurs just after the receiver has sampled the stop bit (indicated in autoecho by assertion of rxrdy), and the transmitter is enabled, the transmitter will remain in autoecho mode until the entire stop has been retransmitted. mr2a[5] channel a transmitter request-to-send control caution: when the transmitter controls the op pin (usually used for the rtsn signal) the meaning of the pin is not rtsn at all! rather, it signals that the transmitter has finished the transmission (i.e., end of block). this bit allows deactivation of the rtsn output by the transmitter. this output is manually asserted and negated by the appropriate commands issued via the command register. mr2[5] set to 1 caused the rtsn to be reset automatically one bit time after the character(s) in the transmit shift register and in the thr (if any) are completely transmitted (including the programmed number of stop bits) if a previously issued transmitter disable is pending. this feature can be used to automatically terminate the transmission as follows: 1. program the auto-reset mode: mr2[5]=1 2. enable transmitter, if not already enabled 3. assert rtsn via command 4. send message 5. after the last character of the message is loaded to the thr, disable the transmitter. (if the transmitter is underrun, a special case exists. see note below.) 6. the last character will be transmitted and the rtsn will be reset one bit time after the last stop bit is sent. note: the transmitter is in an underrun condition when both the txrdy and the txemt bits are set. this condition also exists immediately after the transmitter is enabled from the disabled or reset state. when using the above procedure with the transmitter in the underrun condition, the issuing of the transmitter disable must be delayed from the loading of a single, or last, character until the txrdy becomes active again after the character is loaded. mr2a[4] channel a clear-to-send control if this bit is 0, ctsan has no effect on the transmitter. if this bit is a 1, the transmitter checks the state of ctsan (ipo) each time it is ready to send a character. if ipo is asserted (low), the character is transmitted. if it is negated (high), the txda output remains in the marking state and the transmission is delayed until ctsan goes low. changes in ctsan while a character is being transmitted do not affect the transmission of that character.. mr2a[3:0] channel a stop bit length select this field programs the length of the stop bit appended to the transmitted character. stop bit lengths of .563 to 1 and .563 to 2 bits. in increments of 0.625 bit, can be programmed for character lengths of 6, 7, and 8 bits. for a character lengths of 5 bits, 1.0625 to 2 stop bits can be programmed in increments of .0625 bit. the receiver only checks for a `mark' condition at the center of the first stop bit position (one bit time after the last data bit, or after the parity bit is enabled) in all cases. if an external 1x clock is used for the transmitter, mr2a[3] = 0 selects one stop bit and mr2a[3] = 1 selects two stop bits to be transmitted.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 14 mr1b channel b mode register 1 mr1b is accessed when the channel b mr pointer points to mr1. the pointer is set to mr1 by reset or by a `set pointer' command applied via crb. after reading or writing mr1b, the pointer will point to mr2b. mr2b channel b mode register 2 mr2b is accessed when the channel b mr pointer points to mr2, which occurs after any access to mr1b. accesses to mr2b do not change the pointer. the bit definitions for mode registers 1 and 2 are identical to the bit definitions for mra and mr2a except that all control actions apply to the channel b receiver and transmitter and the corresponding inputs and outputs. csra channel a clock select register csra[7:4] channel a receiver clock select this field selects the baud rate clock for the channel a receiver as follows: csra[7:4] acr[7] = 0 baud rate acr[7] = 1 0000 50 75 0001 110 110 0010 134.5 134.5 0011 200 150 0100 300 300 0101 600 600 0110 1,200 1,200 0111 1,050 2,000 1000 2,400 2,400 1001 4,800 4,800 1010 7,200 1,800 1011 9,600 9,600 1100 38.4k 19.2k 1101 timer timer 1110 ip416x ip416x 1111 ip41x ip41x ( see also table 5 ) the receiver clock is always a 16x clock except for csra[7] = 1111. csra[3:0] channel a transmitter clock select this field selects the baud rate clock for the channel a transmitter. the field definition is as per csr[7:4] except as follows: csra[3:0] acr[7] = 0 baud rate acr[7] = 1 1110 1111 ip316x ip31x ip316x ip31x the transmitter clock is always a 16x clock except for csr[3:0] = 1111. csrb channel b clock select register csrb[7:4] channel b receiver clock select this field selects the baud rate clock for the channel b receiver. the field definition is as per csra[7:4] except as follows: csrb[7:4] acr[7] = 0 baud rate acr[7] = 1 1110 1111 ip616x ip61x ip616x ip61x the receiver clock is always a 16x clock except for csrb[7:4] = 1111. csrb[3:0] channel b transmitter clock select this field selects the baud rate clock for the channel b transmitter. the field definition is as per csra[7:4] except as follows: csrb[3:0] acr[7] = 0 baud rate acr[7] = 1 1110 1111 ip516x ip51x ip516x ip51x the transmitter clock is always a 16x clock except for csrb[3:0] = 1111. cra channel a command register cra is a register used to supply commands to channel a. multiple commands can be specified in a single write to cra as long as the commands are non-conflicting, e.g., the `enable transmitter' and `reset transmitter' commands cannot be specified in a single command word. cra[7] not used should be set to zero for upward compatibility with newer parts. cra[6:4] channel a miscellaneous command the encoded value of this field may be used to specify a single command as follows: cra[6:4] command 000 no command. 001 reset mr pointer. causes the channel a mr pointer to point to mr1. 010 reset receiver. resets the channel a receiver as if a hard- ware reset had been applied. the receiver is disabled and the fifo is flushed. 011 reset transmitter. resets the channel a transmitter as if a hardware reset had been applied. 100 reset error status. clears the channel a received break, parity error, and overrun error bits in the status register (sra[7:4]). used in character mode to clear oe status (al- though rb, pe and fe bits will also be cleared) and in block mode to clear all error status after a block of data has been received. 101 reset channel a break change interrupt. causes the chan- nel a break detect change bit in the interrupt status register (isr[2]) to be cleared to zero.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 15 110 start break. forces the txda output low (spacing). if the transmitter is empty the start of the break condition will be delayed up to two bit times. if the transmitter is active the break begins when transmission of the character is com- pleted. if a character is in the thr, the start of the break will be delayed until that character, or any other loaded subse- quently are transmitted. the transmitter must be enabled for this command to be accepted. 111 stop break. the txda line will go high (marking) within two bit times. txda will remain high for one bit time before the next character, if any, is transmitted. cra[3] disable channel a transmitter this command terminates transmitter operation and reset the txdry and txemt status bits. however, if a character is being transmitted or if a character is in the thr when the transmitter is disabled, the transmission of the character(s) is completed before assuming the inactive state. a disable transmitter cannot be loaded. cra[2] enable channel a transmitter enables operation of the channel a transmitter. the txrdy status bit will be asserted. cra[1] disable channel a receiver this command terminates operation of the receiver immediately a character being received will be lost. the command has no effect on the receiver status bits or any other control registers. if the special multidrop mode is programmed, the receiver operates even if it is disabled. see operation section. cra[0] enable channel a receiver enables operation of the channel a receiver. if not in the special wake up mode, this also forces the receiver into the search for start-bit state. crb channel b command register crb is a register used to supply commands to channel b. multiple commands can be specified in a single write to crb as long as the commands are non-conflicting, e.g., the `enable transmitter' and `reset transmitter' commands cannot be specified in a single command word. the bit definitions for this register are identical to the bit definitions for cra, except that all control actions apply to the channel b receiver and transmitter and the corresponding inputs and outputs. sra channel a status register sra[7] channel a received break this bit indicates that an all zero character of the programmed length has been received without a stop bit. only a single fifo position is occupied when a break is received: further entries to the fifo are inhibited until the rxda line to the marking state for at least one-half a bit time two successive edges of the internal or external 1x clock. this will usually require a high time of one x1 clock period or 3 x1 edges since the clock of the controller is not synchronous to the x1 clock. when this bit is set, the channel a `change in break' bit in the isr (isr[2]) is set. isr[2] is also set when the end of the break condition, as defined above, is detected. the break detect circuitry can detect breaks that originate in the middle of a received character. however, if a break begins in the middle of a character, it must persist until at least the end of the next character time in order for it to be detected. sra[6] channel a framing error this bit, when set, indicates that a stop bit was not detected when the corresponding data character in the fifo was received. the stop bit check is made in the middle of the first bit position. sra[5] channel a parity error this bit is set when the `with parity' or `force parity' mode is programmed and the corresponding character in the fifo was received with incorrect parity. in the special multidrop mode the parity error bit stores the receive a/d bit. sra[4] channel a overrun error this bit, when set indicates that one or more characters in the received data stream have been lost. it is set upon receipt of a new character when the fifo is full and a character is already in the receive shift register waiting for an empty fifo position. when this occurs, the character in the receive shift register (and its break detect, parity error and framing error status, if any) is lost. this bit is cleared by a `reset error status' command. sra[3] channel a transmitter empty (txemta) this bit will be set when the transmitter underruns, i.e., both the txemt and txrdy bits are set. this bit and txrdy are set when the transmitter is first enabled and at any time it is re-enabled after either (a) reset, or (b) the transmitter has assumed the disabled state. it is always set after transmission of the last stop bit of a character if no character is in the thr awaiting transmission. it is reset when the thr is loaded by the cpu, a pending transmitter disable is executed, the transmitter is reset, or the transmitter is disabled while in the underrun condition. sra[2] channel a transmitter ready (txrdya) this bit, when set, indicates that the thr is empty and ready to be loaded with a character. this bit is cleared when the thr is loaded by the cpu and is set when the character is transferred to the transmit shift register. txrdy is reset when the transmitter is disabled or reset, and is set when the transmitter is first enabled, viz., characters loaded into the thr while the transmitter is disabled will not be transmitted. sra[1] channel a fifo full (ffulla) this bit is set when a character is transferred from the receive shift register to the receive fifo and the transfer causes the fifo to become full, i.e., all three fifo positions are occupied. it is reset when the cpu reads the rhr. if a character is waiting in the receive shift register because the fifo is full, ffull will not be reset when the cpu reads the rhr. sra[0] channel a receiver ready (rxrdya) this bit indicates that a character has been received and is waiting in the fifo to be read by the cpu. it is set when the character is transferred from the receive shift to the fifo and reset when the cpu reads the rhr, if after this read there are not more characters still in the fifo. srb channel b status register the bit definitions for this register are identical to the bit definitions for sra, except that all status applies to the channel b receiver and transmitter and the corresponding inputs and outputs.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 16 opcr output port configuration register opcr[7] op7 output select this bit programs the op7 output to provide one of the following: the complement of opr[7]. the channel b transmitter interrupt output which is the comple- ment of txrdyb. when in this mode op7 acts as an open- col- lector output. note that this output is not masked by the contents of the imr. opcr[6] op6 output select this bit programs the op6 output to provide one of the following: the complement of opr[6]. the channel a transmitter interrupt output which is the comple- ment of txrdya. when in this mode op6 acts as an open-col- lector output. note that this output is not masked by the contents of the imr. opcr[5] op5 output select this bit programs the op5 output to provide one of the following: the complement of opr[5]. the channel b transmitter interrupt output which is the comple- ment of isr[5]. when in this mode op5 acts as an open-collector output. note that this output is not masked by the contents of the imr. opcr[4] op4 output select this field programs the op4 output to provide one of the following: the complement of opr[4]. the channel b transmitter interrupt output which is the comple- ment of isr[1]. when in this mode op4 acts as an open-collec- tor output. note that this output is not masked by the contents of the imr. opcr[3:2] op3 output select this bit programs the op3 output to provide one of the following: the complement of opr[3]. the counter/timer output, in which case op3 acts as an open- collector output. in the timer mode, this output is a square wave at the programmed frequency. in the counter mode, the output remains high until terminal count is reached, at which time it goes low. the output returns to the high state when the counter is stopped by a stop counter command. note that this output is not masked by the contents of the imr. the 1x clock for the channel b transmitter, which is the clock that shifts the transmitted data. if data is not being transmitted, a free running 1x clock is output. the 1x clock for the channel b receiver, which is the clock that samples the received data. if data is not being received, a free running 1x clock is output. opcr[1:0] op2 output select this field programs the op2 output to provide one of the following: the complement of opr[2]. the 16x clock for the channel a transmitter. this is the clock selected by csra[3:0], and will be a 1x clock if csra[3:0] = 1111. the 1x clock for the channel a transmitter, which is the clock that shifts the transmitted data. if data is not being transmitted, a free running 1x clock is output. the 1x clock for the channel a receiver, which is the clock that samples the received data. if data is not being received, a free running 1x clock is output. acr auxiliary control register acr[7] baud rate generator set select this bit selects one of two sets of baud rates to be generated by the brg: set 1: 50, 110, 134.5, 200, 300, 600, 1.05k, 1.2k, 2.4k, 4.8k, 7.2k, 9.6k, and 38.4k baud. set 2: 75, 110, 134.5, 150, 300, 600, 1.2k, 1.8k, 2.0k, 2.4k, 4.8k, 9.6k, and 19.2k baud. the selected set of rates is available for use by the channel a and b receivers and transmitters as described in csra and csrb. baud rate generator characteristics are given in table 3. acr[6:4] counter/timer mode and clock source select this field selects the operating mode of the counter/timer and its clock source as shown in table 4. acr[3:0] ip3, ip2, ip1, ip0 change-of-state interrupt enable this field selects which bits of the input port change register (ipcr) cause the input change bit in the interrupt status register (isr[7]) to be set. if a bit is in the `on' state the setting of the corresponding bit in the ipcr will also result in the setting of isr[7], which results in the generation of an interrupt output if imr[7] = 1. if a bit is in the `off' state, the setting of that bit in the ipcr has no effect on isr[7]. ipcr input port change register ipcr[7:4] ip3, ip2, ip1, ip0 change-of-state these bits are set when a change-of-state, as defined in the input port section of this data sheet, occurs at the respective input pins. they are cleared when the ipcr is read by the cpu. a read of the ipcr also clears isr[7], the input change bit in the interrupt status register. the setting of these bits can be programmed to generate an interrupt to the cpu. ipcr[3:0] ip3, ip2, ip1, ip0 current state these bits provide the current state of the respective inputs. the information is unlatched and reflects the state of the input pins at the time the ipcr is read. isr interrupt status register this register provides the status of all potential interrupt sources. the contents of this register are masked by the interrupt mask register (imr). if a bit in the isr is a `1' and the corresponding bit in the imr is also a `1', the intrn output will be asserted. if the corresponding bit in the imr is a zero, the state of the bit in the isr has no effect on the intrn output. note that the imr does not mask the reading of the isr the true status will be provided regardless of the contents of the imr. the contents of this register are initialized to 00 16 when the duart is reset. isr[7] input port change status this bit is a `1' when a change-of-state has occurred at the ip0, ip1, ip2, or ip3 inputs and that event has been selected to cause an interrupt by the programming of acr[3:0]. the bit is cleared when the cpu reads the ipcr.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 17 isr[6] channel b change in break this bit, when set, indicates that the channel b receiver has detected the beginning or the end of a received break. it is reset when the cpu issues a channel b `reset break change interrupt' command. isr[5] channel b receiver ready or fifo full the function of this bit is programmed by mr1b[6]. if programmed as receiver ready, it indicates that a character has been received in channel b and is waiting in the fifo to be read by the cpu. it is set when the character is transferred from the receive shift register to the fifo and reset when the cpu reads the rhr. if after this read there are more characters still in the fifo the bit will be set again after the fifo is `popped'. if programmed as fifo full, it is set when a character is transferred from the receive holding register to the receive fifo and the transfer caused the channel b fifo to become full; i.e., all three fifo positions are occupied. it is reset when the cpu reads the rhr. if a character is waiting in the receive shift register because the fifo is full, the bit will be set again when the waiting character is loaded into the fifo. isr[4] channel b transmitter ready this bit is a duplicate of txrdyb (srb[2]). isr[3] counter ready. in the counter mode, this bit is set when the counter reaches terminal count and is reset when the counter is stopped by a stop counter command. in the timer mode, this bit is set once each cycle of the generated square wave (every other time that the counter/timer reaches zero count). the bit is reset by a stop counter command. the command, however, does not stop the counter/timer. isr[2] channel a change in break this bit, when set, indicates that the channel a receiver has detected the beginning or the end of a received break. it is reset when the cpu issues a channel a `reset break change interrupt' command. isr[1] channel a receiver ready or fifo full the function of this bit is programmed by mr1a[6]. if programmed as receiver ready, it indicates that a character has been received in channel a and is waiting in the fifo to be read by the cpu. it is set when the character is transferred from the receive shift register to the fifo and reset when the cpu read the rhr. if after this read there are more characters still in the fifo the bit will be set again after the fifo is `popped'. if programmed as fifo full, it is set when a character is transferred from the receive holding register to the receive fifo and the transfer caused the channel a fifo to become full; i.e., all three fifo positions are occupied. it is reset when the cpu reads the rhr. if a character is waiting in the receive shift register because the fifo is full, the bit will be set again when the isr[0] and imr waiting character is loaded into the fifo. isr[0] channel a transmitter ready this bit is a duplicate of txrdya (sra[2]). imr interrupt mask register the programming of this register selects which bits in the isr causes an interrupt output. if a bit in the isr is a `1' and the corresponding bit in the imr is also a `1' the intrn output will be asserted. if the corresponding bit in the imr is a zero, the state of the bit in the isr has no effect on the intrn output. note that the imr does not mask the programmable interrupt outputs op3op7 or the reading of the isr. ctur and ctlr counter/timer registers the ctur and ctlr hold the eight msbs and eight lsbs, respectively, of the value to be used by the counter/timer in either the counter or timer modes of operation. the minimum value which may be loaded into the ctur/ctlr registers is 0002 16 . note that these registers are write-only and cannot be read by the cpu. in the timer (programmable divider) mode, the ct generates a square wave with a period of twice the value (in clock periods) of the ctur and ctlr. if the value in ctur and ctlr is changed, the current half-period will not be affected, but subsequent half periods will be. in this mode the c/t runs continuously. receipt of a start counter command (read with a3-a0 = 1110) causes the counter to terminate the current timing cycle and to begin a new cycle using the values in ctur and ctlr. the waveform so generated is often used for a data clock. the formula for calculating the divisor n to load to the ctur and ctlr for a particular 1x data clock is shown below: n  counter clock frequency 16x2x baud rate desired often this division will result in a non-integer number; 26.3, for example. one can only program integer numbers in a digital divider. therefore, 26 would be chosen. this gives a baud rate error of 0.3/26.3 which is 1.14%; well within the ability asynchronous mode of operation. the counter ready status bit (isr[3]) is set once each cycle of the square wave. the bit is reset by a stop counter command (read with a3-a0 = 1111). the command however, does not stop the c/t. the generated square wave is output on op3 if it is programmed to be the c/t output. on power up and after reset, the timer/counter runs in timer mode and can only be restarted. because it cannot be shut off or stopped, and runs continuously in timer mode, it is recommended that at initialization, the output port (op3) should be masked off through the opcr[3:2] = 00 until the t/c is programmed to the desired operational state. in the counter mode, the c/t counts down the number of pulses loaded into ctur and ctlr by the cpu. counting begins upon receipt of a counter command. upon reaching terminal count (0000 16 ), the counter ready interrupt bit (isr[3]) is set. the counter continues counting past the terminal count until stopped by the cpu. if op3 is programmed to be the output of the c/t, the output remains high until terminal count is reached, at which time it goes low. the output returns to the high state and isr[3] is cleared when the counter is stopped by a stop counter command. the cpu may change the values of ctur and ctlr at any time, but the new count becomes effective only on the next start counter command. if new values have not been loaded, the previous count values are preserved and used for the next count cycle. in the counter mode, the current value of the upper and lower 8 bits of the counter (ctu, ctl) may be read by the cpu. it is recommended that the counter be stopped when reading to prevent potential problems which may occur if a carry from the lower 8 bits to the upper 8 bits occurs between the times that both halves of the counter are read. however, note that a subsequent start counter command will cause the counter to begin a new count cycle using the values in ctur and ctlr.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 18 table 3. bit rate generator characteristics crystal or clock = 3.6864mhz normal rate (baud) actual 16x clock (khz) error (%) 50 0.8 0 75 1.2 0 110 1.759 -0.069 134.5 2.153 0.059 150 2.4 0 200 3.2 0 300 4.8 0 600 9.6 0 1050 16.756 -0.260 1200 19.2 0 1800 28.8 0 2000 32.056 0.175 2400 38.4 0 4800 76.8 0 7200 115.2 0 9600 153.6 0 14.4k 230.4 0 19.2k 307.2 0 28.8k 460.8 0 38.4k 614.4 0 57.6k 921.6 0 115.2k 1843.2k 0 note: duty cycle of 16x clock is 50% 1%. asynchronous uart communications can tolerate frequency error of 4.1% to 6.7% in a acleano communications channel. the percent of error changes as the character length changes. the above percentages range from 5 bits not parity to 8 bits with parity and one stop bit. the error with 8 bits no parity and one stop bit is 4.6%. if a stop bit length of 9/16 is used, the error tolerance will approach 0 due to a variable error of up to 1/16 bit time in receiver clock phase alignment to the start bit. table 4. acr 6:4 field definition acr 6:4 mode clock source 000 counter external (ip2) 001 counter txca 1x clock of channel a transmitter 010 counter txcb 1x clock of channel b transmitter 011 counter crystal or external clock (x1/clk) divided by 16 100 timer (square wave) external (ip2) 101 timer (square wave) external (ip2) divided by 16 110 timer (square wave) crystal or external clock (x1/clk) 111 timer (square wave) crystal or external clock (x1/clk) divided by 16 note: timer mode generates a squarewave.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 19 timing diagrams reset t res sd00086 figure 3. reset timing a0a3 cen t as t cs t ch rdn t rw t rwd d0d7 (read) t dd t df float float valid not valid wdn t rwd valid d0d7 (write) t ds t dh t ah sd00087 figure 4. bus timing rdn ip0ip6 wrn op0op7 t ps t ph t pd old data new data v m v oh v ol v m = 1.5v sd00089 figure 5. port timing
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 20 timing diagrams (continued) notes: 1. intrn or op3 op7 when used as interrupt outputs. 2. the test for open-drain outputs is intended to guarantee switching of the output transistor. measurement of this response is referenced from themidpoint of the switching signal, v m , to a point 0.5v above v ol . this point represents noise margin that assures true switching has occurred. beyond this level, the effects of external circu itry and test environment are pronounced and can greatly affect the resultant measurement. v m v ol +0.5v v ol rdn or wrn interrupt 1 output t ir sd00090 figure 6. interrupt timing t clk t ctc t rx t tx x1/clk ctclk rxc txc +5v 1k w x1 x2 x2 3.6864mhz x1 c1 c2 driving from external source scn2681 74ls04 clock to other chips 1k +5v crystal series resistance3 should be less than 180 w r1: 100k - 1meg (see design note) c1 = c2: 0-5pf + (stray < 5pf) t clk t ctc t rx t tx open when using an external clock it is preferred to drive x2 and leave x1 open. x2 is the input to the internal driver, while x1 is the output. to the rest of the duart circuits r1 u1 r1 is only required if u1 will not drive to x2 high level. previous specifications indicated x2 should be grounded and x1 should be driven. this is still acceptable. it is electrically easier to drive the amplifier input than to overdrive its output. r2 r2 = 50k w to 150k w sd00091 figure 7. clock timing t txd t tcs 1 bit time (1 or 16 clocks) txd txc (input) txc (1x output) sd00092 figure 8. transmit
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 21 timing diagrams (continued) t rxs t rxh rxc (1x input) rxd sd00093 figure 9. receiver timing transmitter enabled txd d1 d2 d3 d4 d6 break txrdy (sr2) wrn d1 d2 d3 d4 d6 start break stop break d5 will not be transmitted ctsn 1 (ip0) rtsn 2 (op0) opr(0) = 1 opr(0) = 1 notes: 1. timing shown for mr2(4) = 1. 2. timing shown for mr2(5) = 1. sd00094 figure 10. transmitter timing
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 22 timing diagrams (continued) d1 d2 d3 d4 d5 d6 d7 d8 rxd d6, d7, d8 will be lost receiver enabled rxrdy (sr0) ffull (sr1) rxrdy/ ffull (op5) 2 rdn status data d1 status data d2 status data d3 status data d4 d5 will be lost overrun (sr4) reset by command rts 1 (op0) opr(0) = 1 notes: 1. timing shown for mr1(7) = 1. 2. shown for opcr(4) = 1 and mr(6) = 0. sd00095 figure 11. receiver timing transmitter enabled txd add#1 txrdy (sr2) wrn mr1(43) = 11 mr1(2) = 1 1 bit 9 d0 0 bit 9 add#2 1 bit 9 master station add#1 mr1(2) = 0 d0 mr1(2) = 1 add#2 rxd add#1 1 bit 9 d0 0 bit 9 add#2 1 bit 9 peripheral station 0 bit 9 0 bit 9 receiver enabled rxrdy (sr0) rdn/wrn mr1(43) = 11 add#1 status data d0 status data add#2 sd00096 figure 12. wake-up mode
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 23 output port notes the output ports are controlled from three places: the opcr register, the opr register, and the mr registers. the opcr register controls the source of the data for the output ports op2 through op7. the data source for output ports op0 and op1 is controlled by the mr and cr registers. when the opr is the source of the data for the output ports, the data at the ports is inverted from that in the opr register. the content of the opr register is controlled by the aset output port bits commando and the areset output bits commando. these commands are at e and f, respectively. when these commands are used, action takes place only at the bit locations where ones exist. for example, a one in bit location 5 of the data word used with the aset output port bitso command will result in opr5 being set to one. the op5 would then be set to zero (v ss ). similarly, a one in bit position 5 of the data word associated with the areset output ports bitso command would set opr5 to zero and, hence, the pin op5 to a one (v dd ). the cts, rts, cts enable tx signals cts (clear to send) is usually meant to be a signal to the transmitter meaning that it may transmit data to the receiver. the cts input is on pin ip0 for txa and on ip1 for txb. the cts signal is active low; thus, it is called ctsan for txa and ctsbn for txb. rts is usually meant to be a signal from the receiver indicating that the receiver is ready to receive data. it is also active low and is, thus, called rtsan for rxa and rtsbn for rxb. rtsan is on pin op0 and rtsbn is on op1. a receiver's rts output will usually be connected to the cts input of the associated transmitter. therefore, one could say that rts and cts are different ends of the same wire! mr2(4) is the bit that allows the transmitter to be controlled by the cts pin (ip0 or ip1). when this bit is set to one and the cts input is driven high, the transmitter will stop sending data at the end of the present character being serialized. it is usually the rts output of the receiver that will be connected to the transmitter's cts input. the receiver will set rts high when the receiver fifo is full and the start bit of the fourth character is sensed. transmission then stops with four valid characters in the receiver. when mr2(4) is set to one, ctsn must be at zero for the transmitter to operate. if mr2(4) is set to zero, the ip pin will have no effect on the operation of the transmitter. mr1(7) is the bit that allows the receiver to control op0. when op0 (or op1) is controlled by the receiver, the meaning of that pin will be rts. however, a point of confusion arises in that op0 (or op1) may also be controlled by the transmitter. when the transmitter is controlling this pin, its meaning is not rts at all. it is, rather, that the transmitter has finished sending its last data byte. programming the op0 or op1 pin to be controlled by the receiver and the transmitter at the same time is allowed, but would usually be incompatible. rts is expressed at the op0 or op1 pin which is still an output port. therefore, the state of op0 or op1 should be set low for the receiver to generate the proper rts signal. the logic at the output is basically a nand of the opr register and the rts signal as generated by the receiver. when the rts flow control is selected via the mr(7) bit state of the opr register is not changed. terminating the use of aflow controlo (via the mr registers) will return the op0 or op1 pins to the control of the opr register. transmitter disable note the sequence of instructions enable transmitter e load transmit holding register e disable transmitter will result in nothing being sent if the time between the end of loading the transmit holding register and the disable command is less that 3/16 bit time in the 16x mode or one bit time in the 1x mode. also, if the transmitter, while in the enabled state and underrun condition, is immediately disabled after a single character is loaded to the transmit holding register, that character will not be sent. in general, when it is desired to disable the transmitter before the last character is sent and the txemt bit is set in the status register (txemt is always set if the transmitter has underrun or has just been enabled), be sure the txrdy bit is active immediately before issuing the transmitter disable instruction. txrdy sets at the end of the astart bito time. it is during the start bit that the data in the transmit holding register is transferred to the transmit shift register. non-standard baud rates are available as shown in table 5 below, via the brg test function.
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 24 table 5. baud rates extended normal brg brg test csr[7:4] acr[7] = 0 acr[7] = 1 acr[7] = 0 acr[7] = 1 0000 50 75 4,800 7,200 0001 110 110 880 880 0010 134.5 134.5 1,076 1,076 0011 200 150 19.2k 14.4k 0100 300 300 28.8k 28.8k 0101 600 600 57.6k 57.6k 0110 1,200 1,200 115.2k 115.2k 0111 1,050 2,000 1,050 2,000 1000 2,400 2,400 57.6k 57.6k 1001 4,800 4,800 4,800 4,800 1010 7,200 1,800 57.6k 14.4k 1011 9,600 9,600 9,600 9,600 1100 38.4k 19.2k 38.4k 19.2k 1101 timer timer timer timer 1110 i/o2 16x i/o2 16x i/o2 16x i/o2 16x 1111 i/o2 1x i/o2 1x i/o2 1x i/o2 1x note: each read on address h`2' will toggle the baud rate test mode. when in the brg test mode, the baud rates change as shown to the left. this change affects all receivers and transmitters on the duart. see aextended baud rates for scn2681, scn68681, scc2691, scc2692, scc68681 and scc2698bo in application notes elsewhere in this publication the test mode at address h`a' changes all transmitters and receivers to the 1x mode and connects the output ports to some inter nal nodes. a condition that occurs infrequently has been observed where the receiver will ignore all data. it is caused by a corruption o f the start bit generally due to noise. when this occurs the receiver will appear to be asleep or locked up. the receiver must be reset for t he uart to continue to function properly. reset in the normal mode (receiver enabled) recovery can be accomplished easily by issuing a receiver software reset followed by a receiver enable. all receiver data, sta tus and programming will be preserved and available before reset. the reset will not affect the programming. reset in the wake-up mode (mr1[4:3] = 11) recovery can also be accomplished easily by first exiting the wake-up mode (mr1[4:3] = 00 or 01 or 10), then issuing a receiver software reset followed by a wake-up re-entry (mr1[4:3] = 11). all receiver data, status and programming will be preserved and availabl e before reset. the reset will not affect the programming. the receiver has a digital filter designed to reject anoisyo data transitions and the receiver state machine was designed to re ject noisy start bits or noise that might be considered a start bit. in spite of these precautions, corruption of the start bit can occur in 15 ns window approximately 100ns prior to the rising edge of the data clock. the probability of this occurring is less than 10 5 at 9600 baud. a corrupted start bit may have some deleterious effects in async operation if it occurs within a normal data block. the receiv er will tend to align its data clock to the next `0' bit in the data stream, thus potentially corrupting the remainder of the data block. a good design practice, in environments where start bit corruption is possible, is to monitor data quality (framing error, parity error, brea k change and received break) and adata stoppedo time out periods. time out periods can be enabled using the counter/timer in the scc2691, s cc2692, scc2698b and sc68692 products. this monitoring can indicate a potential start bit corruption problem. sd00097
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 25 dip24: plastic dual in-line package; 24 leads (400 mil) sot248-1
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 26 dip28: plastic dual in-line package; 28 leads (600 mil) sot117-1
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 27 dip40: plastic dual in-line package; 40 leads (600 mil) sot129-1
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 28 plcc44: plastic leaded chip carrier; 44 leads sot187-2
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 29 notes
philips semiconductors product specification scn2681 dual asynchronous receiver/transmitter (duart) 1998 sep 04 30 definitions short-form specification e the data in a short-form specification is extracted from a full data sheet with the same type number and title. for detailed information see the relevant data sheet or data handbook. limiting values definition e limiting values given are in accordance with the absolute maximum rating system (iec 134). stress above one or more of the limiting values may cause permanent damage to the device. these are stress ratings only and operation of the dev ice at these or at any other conditions above those given in the characteristics sections of the specification is not implied. exposure to limi ting values for extended periods may affect device reliability. application information e applications that are described herein for any of these products are for illustrative purposes only. philips semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification. disclaimers life support e these products are not designed for use in life support appliances, devices or systems where malfunction of these products can reasonably be expected to result in personal injury. philips semiconductors customers using or selling these products for use i n such applications do so at their own risk and agree to fully indemnify philips semiconductors for any damages resulting from such application. right to make changes e philips semiconductors reserves the right to make changes, without notice, in the products, including circuits, standard cells, and/or software, described or contained herein in order to improve design and/or performance. philips semiconductors ass umes no responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or m ask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right in fringement, unless otherwise specified. philips semiconductors 811 east arques avenue p.o. box 3409 sunnyvale, california 940883409 telephone 800-234-7381 ? copyright philips electronics north america corporation 1998 all rights reserved. printed in u.s.a. date of release: 09-98 document order number: 9397 750 04362    
  data sheet status objective specification preliminary specification product specification product status development qualification production definition [1] this data sheet contains the design target or goal specifications for product development. specification may change in any manner without notice. this data sheet contains preliminary data, and supplementary data will be published at a later date. philips semiconductors reserves the right to make chages at any time without notice in order to improve design and supply the best possible product. this data sheet contains final specifications. philips semiconductors reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. data sheet status [1] please consult the most recently issued datasheet before initiating or completing a design.
philips semiconductors - pip - scn2681; dual asynchronous receiver/transmitter (duart) philips semiconductors home product catalog buy online mysemiconductors contact products ? multimarket semiconductors ? product selector ? catalog by function ? catalog by system ? cross-reference ? packages ? end of life information ? distributors go here! ? models ? soc solutions product information scn2681; dual asynchronous receiver/transmitter (duart) information as of 2003-04-22 my.semiconductors.com. your personal service from philips semiconductors. please register now ! stay informed use right mouse button to download datasheet download datasheet general description features applications datasheet block diagram buy online support & tools email/translate products & packages parametrics similar products top general description the philips semiconductors scn2681 dual universal asynchronous receiver/transmitter (duart) is a single-chip mos-lsi communications device that provides two independent full-duplex asynchronous receiver/transmitter channels in a single package. it interfaces directly with microprocessors and may be used in a polled or interrupt driven system. the operating mode and data format of each channel can be programmed independently. additionally, each receiver and transmitter can select its operating speed as one of eighteen fixed baud rates, a 16x clock derived from a programmable counter/timer, or an external 1x or 16x clock. the baud rate generator and counter/timer can operate directly from a crystal or from external clock inputs. the ability to independently program the operating speed of the receiver and transmitter make the duart particularly attractive for dual-speed channel applications such as clustered terminal systems. each receiver is quadruply buffered to minimize the potential of receiver over-run or to reduce interrupt overhead in interrupt driven systems. in addition, a flow control capability is provided to disable a remote duart transmitter when the buffer of the receiving device is full. also provided on the scn2681 are a multipurpose 7-bit input port and a multipurpose 8-bit output port. these can be used as general purpose i/o ports or can be assigned specific functions (such as clock inputs or status/interrupt outputs) under program control. the scn2681 is available in three package versions: 40-pin and 28?pin, both 0.6? wide dips; a compact 24-pin 0.4? wide dip; and a 44-pin plcc. top features l dual full-duplex asynchronous receiver/transmitter l quadruple buffered receiver data registers l programmable data format ? 5 to 8 data bits plus parity ? odd, even, no parity or force parity ? 1, 1.5 or 2 stop bits programmable in 1/16-bit increments l programmable baud rate for each receiver and transmitter selectable from: ? 22 fixed rates: 50 to 115.2k baud l 16-bit programmable counter/timer ? non-standard rates to 115.2kb ? one user-defined rate derived from programmable timer/counter ? external 1x or 16x clock l parity, framing, and overrun error detection l false start bit detection file:///g|/imaging/bitting/cpl/20030424/04232003_9/phgl/_html04232003/scn2681ac1n40.html (1 of 4) [apr-29-2003 9:44:40 am]
philips semiconductors - pip - scn2681; dual asynchronous receiver/transmitter (duart) l line break detection and generation l programmable channel mode ? normal (full-duplex) ? automatic echo ? local loopback ? remote loopback l multi-function programmable 16-bit counter/timer l multi-function 7-bit input port ? can serve as clock or control inputs ? change of state detection on four inputs ? 100kw typical pull-up resistor l multi-function 8-bit output port ? individual bit set/reset capability ? outputs can be programmed to be status/interrupt signals l versatile interrupt system ? single interrupt output with eight maskable interrupting conditions ? output port can be configured to provide a total of up to six separate wire-orable interrupt outputs l maximum data transfer: 1x ? 1mb/sec, 16x ? 125kb/sec l automatic wake-up mode for multidrop applications l start-end break interrupt/status l detects break which originates in the middle of a character l on-chip crystal oscillator l single +5v power supply l commercial and industrial temperature ranges available l dip and plcc packages top applications download pdf file an405_2: scn2681/scn68681 and scc2691 data communications (date 21-sep-98) top datasheet type number title publication release date datasheet status page count file size (kb) datasheet scn2681 dual asynchronous receiver/transmitter (duart) 9/4/1998 product specification 30 224 download pdf file download top parametrics type number package application function operating temp.(cel) no. of pins receiver/transmitter type scn2681ac1a44 sot248-1 (dip24) data communication receivers/transmitters 0~70 44 dual uarts scn2681ac1n28 sot248-1 (dip24) data communication receivers/transmitters 0~70 28 dual uarts scn2681ac1n40 sot248-1 (dip24) data communication receivers/transmitters 0~70 40 dual uarts scn2681ae1a44 sot248-1 (dip24) data communication receivers/transmitters -40~85 44 dual uarts scn2681ae1n28 sot248-1 (dip24) data communication receivers/transmitters -40~85 28 dual uarts file:///g|/imaging/bitting/cpl/20030424/04232003_9/phgl/_html04232003/scn2681ac1n40.html (2 of 4) [apr-29-2003 9:44:40 am]
philips semiconductors - pip - scn2681; dual asynchronous receiver/transmitter (duart) scn2681ae1n40 sot248-1 (dip24) data communication receivers/transmitters -40~85 40 dual uarts top products, packages, availability and ordering type number north american type number ordering code (12nc) marking/packing download pdf file discretes packing info package device status buy online scn2681ac1a44 scn2681ac1a44 9337 749 40512 standard marking * tube dry pack sot248- 1 (dip24) full production order this product online - scn2681ac1a44 9337 749 40518 standard marking * reel dry pack, smd, 13" sot248- 1 (dip24) full production order this product online - scn2681ac1a44- s 9337 749 40529 sot248- 1 (dip24) full production order this product online - scn2681ac1n28 scn2681ac1n28- s 9336 627 70129 sot248- 1 (dip24) full production order this product online - scn2681ac1n28 9336 627 70602 standard marking * tube (signetics) sot248- 1 (dip24) full production order this product online - scn2681ac1n40 scn2681ac1n40 9336 627 50602 standard marking * tube (signetics) sot248- 1 (dip24) full production order this product online - scn2681ae1a44 scn2681ae1a44 9350 269 20512 standard marking * tube dry pack sot248- 1 (dip24) full production order this product online - scn2681ae1a44 9350 269 20518 standard marking * reel dry pack, smd, 13" sot248- 1 (dip24) full production order this product online - scn2681ae1a44- s 9350 269 20529 sot248- 1 (dip24) full production order this product online - scn2681ae1n28 scn2681ae1n28 9351 438 50112 standard marking * bulk pack sot248- 1 (dip24) full production order this product online - scn2681ae1n28- s 9351 438 50129 sot248- 1 (dip24) full production order this product online - scn2681ae1n40 scn2681ae1n40 9350 269 40602 standard marking * tube (signetics) sot248- 1 (dip24) full production order this product online - products in the above table are all in production. some variants are discontinued; click here for information on these variants. top similar products products similar to scn2681 scn2681 links to the similar products page containing an overview of products that are similar in function or related to the type number(s) as listed on this page. the similar products page includes products from the same catalog tree(s), relevant selection guides and products from the same functional category. file:///g|/imaging/bitting/cpl/20030424/04232003_9/phgl/_html04232003/scn2681ac1n40.html (3 of 4) [apr-29-2003 9:44:40 am]
philips semiconductors - pip - scn2681; dual asynchronous receiver/transmitter (duart) top support & tools download pdf file philips data communication industrial uart product line chart(date 07-jun-02) download pdf file philips innovative uart solutions(date 19-dec-02) download pdf file extended baud rates for scn2681, scn68681, scc2691, scc2692, scc68681 and scc2698b(date 04-apr-91) top email/translate this product information l email this product information. l translate this product information page from english to: the english language is the official language used at the semiconductors.philips.com website and webpages. all translations on this website are created through the use of google language tools and are provided for convenience purposes only. no rights can be derived from any translation on this website. about this web site | copyright ? 2003 koninklijke philips n.v. all rights reserved. | privacy policy | | koninklijke philips n.v. | access to and use of this web site is subject to the following terms of use. | file:///g|/imaging/bitting/cpl/20030424/04232003_9/phgl/_html04232003/scn2681ac1n40.html (4 of 4) [apr-29-2003 9:44:40 am]


▲Up To Search▲   

 
Price & Availability of SCN2681AC1A44-S

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X